import java.util.ArrayList;
import java.util.List;

/**
 * 客户 (Customer) 类。
 * UML 关联: Customer (1) <--> (0..*) Order
 */
public class Customer {
    private String name;
    private String contact;
    private String deliveryAddress;
    private boolean active;
    
    // 关联实现：拥有 0 到多个订单
    private List<Order> orders; 

    public Customer(String name, String contact, String address) {
        this.name = name;
        this.contact = contact;
        this.deliveryAddress = address;
        this.active = true;
        this.orders = new ArrayList<>();
    }

    public void addOrder(Order order) {
        this.orders.add(order);
    }
    
    public String getName() {
        return name;
    }
}